package com.xintonghua.hongyi.ui.user;

import android.os.Bundle;
import android.support.v7.widget.DefaultItemAnimator;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.widget.TextView;

import com.xintonghua.base.ui.BaseActivity;
import com.xintonghua.hongyi.R;
import com.xintonghua.hongyi.adapter.ShareAdapter;
import com.xintonghua.hongyi.bean.ShareBean;

import java.util.ArrayList;

import butterknife.BindView;
import butterknife.ButterKnife;

public class MyShareActivity extends BaseActivity {

    @BindView(R.id.tv_score)
    TextView tvScore;
    @BindView(R.id.recycler_share)
    RecyclerView recyclerShare;
    private ShareAdapter adapter;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_my_share);
        ButterKnife.bind(this);
        onSimpleActionBar();
        setSimpleActionBar("我的分享");
        initUI();
    }

    @Override
    public void initUI() {
        super.initUI();
        adapter = new ShareAdapter(this, new ArrayList<ShareBean>());
        recyclerShare.setLayoutManager(new LinearLayoutManager(this));
        //recyclerShare.addItemDecoration(new DividerItemDecoration(this));
        recyclerShare.setItemAnimator(new DefaultItemAnimator());
        recyclerShare.setAdapter(adapter);
    }
}
